<?php
	$id_kk=$_POST['id_kk'];
	$alamat=$_POST['alamat'];
	$rt=$_POST['rt'];
	$rw=$_POST['rw'];
	$desa=$_POST['desa'];
	$tgl=tgl_ind2("$_POST[tgl]");
	//$jamkesmas=$_POST['jamkesmas'];

	if(isset($_POST['submit'])){
		$sql="insert into keluarga values ('$id_kk','$alamat','$rt','$rw','$desa','$tgl')";
		$qry=mysql_query($sql);
	}
	
	$url_sukses="utama.php?module=mod_keluarga&view=detail&id=$id_kk";
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>